﻿using EF增删改查.Models;
using Microsoft.EntityFrameworkCore;

namespace EF增删改查.DbContexts
{
    public class DefaultDbContext : DbContext
    {
        public virtual DbSet<TestModels> TestModels { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) => optionsBuilder.UseSqlServer("Server=122.112.188.176;DataBase=testdb;User ID=sa;Password=aS103208900.;TrustServerCertificate=true");
    }
}